<script>
    function getTime() {
        var time = new Date()
        var h = time.getHours()
        var m = time.getMinutes()
        var s = time.getSeconds()
        return h + ':' + m + ':' + s
    }
    console.log(getTime())
</script>

